@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;500;600;700;800&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --clr-white: #FFFFFF;
  --clr-black: #202020;
  --clr-grey: #707070;
  --clr-blue: #6C63FF;
  --clr-blue-2: #17109d;
  --clr-green: #4fb646;
}

body {
  margin: 0;
  font-family: "Open Sans";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ------------------------------------------------------ */
/* -- NAVIGATION -- */

nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
  background-color: white;
}

.nav__brand {
  display: flex;
  justify-content: center;
  align-items: center;

  padding: 20px;
}

.nav__brand img {
  max-width: 125px;
  height: auto;
}

.nav__brand h1 {
  color: var(--clr-blue);
  font-size: 2.5em;
  font-weight: 800;
}

.nav__links {
  display: flex;
  justify-content: center;
  align-items: center;

  list-style: none;
}

.nav__links li {
  margin: 0 15px;
}

.nav__links li a {
  text-decoration: none;
  color: var(--clr-black);
}

.nav__links li a:hover {
  color: var(--clr-blue);
}

.nav__connect {
  width: 175px;
  height: 50px;
  margin: 0 auto;

  background-color: var(--clr-blue);
  color: var(--clr-white);

  border: none;
  border-radius: 4px;

  font-family: "Open Sans";
  font-size: 1.10em;
  font-weight: 600;

  cursor: pointer;
  transition: all 250ms ease;
}

.nav__connect:hover {
  background-color: var(--clr-blue-2);
}

/* ------------------------------------------------------ */
/* -- HEADER -- */

header {
  background-image: url("./assets/houses.png");
  background-position: center;
  background-size: cover;
  min-height: 40vh;

  position: relative;
}

.header__title {
  position: absolute;
  top: 75%;
  left: 20%;
  transform: translate(-50%, -50%);

  color: var(--clr-white);
  font-size: 2em;

  width: 100%;
  text-align: center;
}

.header__search {
  padding: 25px;
  min-width: 40%;

  position: absolute;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* ------------------------------------------------------ */
/* -- CARDS -- */

.cards__section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;

}

.cards__section h3 {
  margin: 50px 0 20px;
}

.cards {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 350px), 1fr));
  margin-top: 10px;
}
.background {
  background-color: #f7f7f7d7;
}
.cardb {
  width: 564px;
  height: 300px;
  background-color: var(--clr-white);
  margin: 10px auto;
  margin-left: 30px;
  cursor: pointer;
  position: relative;
  float:left;
  transition: all 250ms ease;
}

.cardb h3 {
  margin-left: 20px;
  margin-top: 20px;
}

.cardb:hover {
  box-shadow: 1px 1px 5px var(--clr-grey);
}
.carda {
  width: 564px;
  height: 300px;
  background-color: var(--clr-white);
  margin: 10px auto;
  float:left;
  cursor: pointer;
  position: relative;

  transition: all 250ms ease;
}

.carda h3 {
  margin-left: 20px;
  margin-top: 20px;
}

.carda:hover {
  box-shadow: 1px 1px 5px var(--clr-grey);
}
.cardc {
  width: 350px;
  height: 400px;
  background-color: var(--clr-white);
  margin: 10px auto;
  margin-top: 340px;
  cursor: pointer;
  width: 100%;
}

.card_account p {
  font-family: "Open Sans";
  font-size: 0.80em;
}

.cardc h3 {
  margin-left: 20px;
}

.cardc:hover {
  box-shadow: 1px 1px 5px var(--clr-grey);
}

.card__info_a {
  background-color: var(--clr-white);
  float:left;
  padding: 5px 10px;
  margin-top: 20px;
  position: relative;
}

.card_account {
  margin-top: 25px;
  margin-left: 60px;  
  position: relative;  
  float:left;
}

.card_input {
  background-color: var(--clr-white);
  padding: 5px 10px;
  margin-top: 30px;
  position: relative;
}

.card__input {
  background-color: var(--clr-white);
  padding: 5px 10px;
  margin-top: 30px;
  margin-left: 190px;
  position: relative;
  float:left;
}

.card__input1 {
  margin-top: 65px;
  position: relative;
}
.card__input1 p {
  font-family: "Open Sans";
  font-size: 0.80em;
}
.card_input h5 {
  font-family: "Open Sans";
  font-size: 1.00 em;
  font-weight: 600;
}

.card__info_a h5 {
  font-family: "Open Sans";
  font-size: 1.00 em;
  font-weight: 600;
}

.card__info p {
  font-family: "Open Sans";
  font-size: 0.90em;
  margin-top: 5px;
}

.transfer {
  width: 545px;
  height: 30px;

  background-color: #1890ff;
  color: var(--clr-white);

  border: none;
  border-radius: 6px;

  font-family: "Open Sans";
  font-size: 1.10em;
  font-weight: 600;
  margin-top: 50px;
  margin-left: 10px;
  cursor: pointer;
  transition: all 250ms ease;
}
.transfer:hover {
  background-color: #46a2f8;
}
/* ------------------------------------------------------ */
/* -- HOMES -- */

.home {
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.7);

  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.home__details {
  display: grid;
  /* grid-template-columns: repeat(2, 1fr); */
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 350px), 1fr));
  align-items: center;

  width: 80%;
  height: 70%;
  margin: 0 auto;
  padding: 20px;

  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;

  background: var(--clr-white);
}
.demo-modal {
  width: 1000px;
  height: 1000px;
}

.home__image {
  max-width: 500px;
  margin: 20px auto;
}
.vertical-center-modal {
  text-align: center;
  white-space: nowrap;
}

.vertical-center-modal:before {
  content: '';
  display: inline-block;
  height: 100%;
  vertical-align: middle;
  width: 0;
}

.vertical-center-modal .ant-modal {
  display: inline-block;
  vertical-align: middle;
  top: 0;
  text-align: left;
}
.home__image img {
  max-width: 100%;
}

@media screen and (max-width: 768px) {
  nav {
    grid-template-columns: repeat(2, 1fr);
  }

  .nav__links {
    display: none;
  }
}